<template>
    <Pop :show="account.popBindFacebook" :title="$t('message.BindFacebook.a')" @close="onClose">
        <div class="b-txt1 c-title-5">{{ $t('message.BindFacebook.b') }}</div>
        <div class="b-ipt-box">
            <!-- <input type="text" class="ipt" placeholder="请输入您的邮箱或手机号" />
            <div class="ipt-btn">获取验证码</div> -->
            <JInput class="b-inp" :button="$t('message.BindFacebook.c')" :placeholder="$t('message.BindFacebook.d')"></JInput>
        </div>
        <div class="b-txt1 c-title-5">{{ $t('message.BindFacebook.e') }}</div>
        <div class="b-ipt-box">
            <!-- <input type="text" class="ipt" placeholder="请输入验证码" /> -->
            <JInput class="b-inp" :placeholder="$t('message.BindFacebook.f')"></JInput>
        </div>
        <div class="b-txt1 c-title-5">{{ $t('message.BindFacebook.g') }}</div>
        <div class="b-ipt-box">
            <!-- <input type="text" class="ipt" placeholder="请输入密码" /> -->
            <JInput class="b-inp" :placeholder="$t('message.BindFacebook.h')"></JInput>
        </div>

        <div class="btns">
            <v-btn class="btn-1 submit-btn" color="#787570" type="submit" @click="onClose"> {{ $t('message.BindFacebook.i') }} </v-btn>
            <v-btn class="btn-2 submit-btn" color="primary" type="submit" @click="onSure"> {{ $t('message.BindFacebook.j') }} </v-btn>
        </div>
    </Pop>
</template>

<script lang="ts" setup>
import Pop from "@/components/pop/index.vue";
import JInput from "@/components/j-input/index.vue";
import { toast } from "@/components/toast/toast";
import { useAccount } from "@/stores/account";

const account = useAccount();

const onClose = () => {
    account.changePopBindFacebook(false);
};
const onSure = () => {
    onClose();
    console.log("book");
};
</script>

<style lang="less" scoped>
.b-txt1 {
    font-size: 14px;
    color: #b1b6c6;
    margin-bottom: 10px;
    margin-top: 20px;
}

.btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;

    .btn-1 {
        width: 160px;
        height: 42px;
        margin-right: 22px;
    }

    .btn-2 {
        width: 160px;
        height: 42px;
    }

    :deep(.v-btn__content) {
        color: #333;
    }
}

.b-ipt-box {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    margin: 12px 0;
    height: 42px;

    .ipt {
        flex: 1;
        outline: none;
        background: #15181d;
        padding-inline-start: 10px;
        border-radius: 4px 0px 0px 4px;
        color: #b1b6c6;
    }

    .ipt-btn {
        width: 100px;
        height: 42px;
        background: #fcc235;
        border-radius: 0px 4px 4px 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #333333;

        &:hover {
            background: #d3a228;
        }
    }
}
.b-inp {
    width: 100%;
    :deep(.j-input-btn) {
        padding: 0 10px;
    }
}
</style>
